/// data : null
/// code : -1
/// message : "手机号已存在"
/// requestId : 1764976981192966144

class Result {
  Result({
    dynamic data,
    num? code,
    String? message,
    String? requestId,
  }) {
    _data = data;
    _code = code;
    _message = message;
    _requestId = requestId;
  }

  Result.fromJson(dynamic json) {
    _data = json['data'] == null ? [] : json['data'];
    _code = json['code'];
    _message = json['message'];
    _requestId = json['requestId'];
  }

  dynamic _data;
  num? _code;
  String? _message;
  String? _requestId;

  Result copyWith({
    dynamic data,
    num? code,
    String? message,
    String? requestId,
  }) =>
      Result(
        data: data ?? _data,
        code: code ?? _code,
        message: message ?? _message,
        requestId: requestId ?? _requestId,
      );

  dynamic get data => _data;

  num? get code => _code;

  String? get message => _message;

  String? get requestId => _requestId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['data'] = _data;
    map['code'] = _code;
    map['message'] = _message;
    map['requestId'] = _requestId;
    return map;
  }
}
